<head>
<?php echo $javascript->link('jquery-1.3.2.js');?>
<script type="text/javascript">
$(document).ready(function(){
	/*
	  $("p").click(function(){
	    $(this).hide();
	  });
	  */
	$("#sandwich").click(function(){
		//test();//ok

		mySandwich('ham', 'cheese', function() {
		    alert('Finished eating my sandwich.');
		});
	});
});

//function win1(){
//	win1 = window.open("http://localhost/js-tut/javascripts/popup","Window1",
//	"menubar=no,width=430,height=360,toolbar=no’);
//}
<!--http://www.javascript-coder.com/window-popup/javascript-window-open.phtml-->
//*/
</script>
</head>

<body>
<h1>Popup 2</h1>
<?php
//href="javascript:void(0)" vs href="#"
?>
<input type="button"
onclick="win1=window.open('http://www.quackit.com/common/link_builder.cfm','popUpWindow',
		'height=500,width=400,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes');"
		 value="Open a Popup Window">


</body>